SetOffset
TheSetOffset
method sets the offset of the currently focused value.
void SetOffset (in ODULong offset);
offset
- The new offset (in bytes) of the read/write position from the beginning of the data stream in the currently focused value, expressed as an unsigned 32-bit value.
DISCUSSION
You can call this method if you want to read or write data at a particular position in the focused value. An offset of 0 means the beginning of the data stream corresponding to the focused value; an offset equal to the current size of the focused value (as returned by theGetSize
method) means the end of the data stream. You may not specify an offset larger than the current size of the focused value.EXCEPTIONS
kODErrUnfocusedStorageUnit
- This storage unit is not focused on a value.
kODErrZeroRefCount
- This storage unit has a reference count of 0.
SEE ALSO
TheODStorageUnit::GetOffset
method (page 691).
TheODStorageUnit::GetSize
method (page 695).
Listing 2-45 on page 106 in OpenDoc Cookbook.
"Manipulating the Data in a Value" on page 276 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help